import 'package:flutter/material.dart';

import 'package:get/get.dart';
import 'header/header_avatar.dart';
import '../../../components/tag.dart';
import 'members.dart';

class Teamheader extends StatefulWidget {
  @override
  _TeamheaderState createState() => _TeamheaderState();
}

class _TeamheaderState extends State<Teamheader> {
  GlobalKey gcd_qs = GlobalKey();

  List<String> names = ["可爱", "来凤", "辛丑", "辛丑", "辛丑", "辛丑", "辛丑", "辛丑"];

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          HeaderAvatar(
            name: "xx",
          ),
          SizedBox(height: 10),
          Container(
            padding: EdgeInsets.only(left: 8),
            child: Text(
              "my name",
              style: TextStyle(
                fontWeight: FontWeight.bold,
                fontSize: 20,
              ),
            ),
          ),
          SizedBox(
            height: 5,
          ),
          Container(
            padding: EdgeInsets.only(left: 8),
            child: Wrap(
              spacing: 8.0,
              runSpacing: 4.0,
              alignment: WrapAlignment.start,
              children: names
                  .map((e) => Tag(
                        name: e,
                      ))
                  .toList(),
            ),
          ),
          SizedBox(
            height: 5,
          ),
          Container(
            child: Member(),
          ),
        ],
      ),
    );
  }
}
